const http = require("http")

const router = require("./router")

const server = http.createServer( (request, response) => {
    
    console.log("Got request.")

    response.setHeader("Access-Control-Allow-Origin", "*");

    router(request, response);

})

server.listen(27019, ()=>{
	console.log("Server started at http://localhost:27019")
});